//
//  RequestIdGenerator.m
//  pkphotomap
//
//  Created by Ed Mancebo on 3/23/11.
//  Copyright 2011 Personal. All rights reserved.
//

#import "RequestIdGenerator.h"
#include <libkern/OSAtomic.h>

static volatile int rid = 0;

@implementation RequestIdGenerator

+ (int) getCurrentId {
	return rid;
}

+ (int) getNextId {
	return OSAtomicIncrement32(&rid);
}

@end
